/* 
 * File:   MinOppGainDiscardStrategy.h
 * Author: root
 *
 * Created on December 6, 2008, 9:46 PM
 */

#ifndef _MINOPPGAINDISCARDSTRATEGY_H
#define	_MINOPPGAINDISCARDSTRATEGY_H

#include "DiscardStrategy.h"

class MinOppGainDiscardStrategy : public DiscardStrategy {
    
    int decisionCertainty;
    
protected:
    
    virtual void setExecutionParameter(int index, int rangeFraction) {
    }
    
public:
    
    MinOppGainDiscardStrategy() 
    : DiscardStrategy(string("MinOppGainDiscardStrategy"), 0), decisionCertainty(0)
    {
    }

    MinOppGainDiscardStrategy (int myWeight)
    : DiscardStrategy (myWeight), decisionCertainty(0)
    {
    }

    virtual int getDecisionCertainty() {
        return decisionCertainty;
    }
    
    virtual Strategy* getActiveInstance(int inst_weight) {
        return dynamic_cast<Strategy*>(new MinOppGainDiscardStrategy(inst_weight));
    }

    virtual void opponentMove ( int opponent, const Move& move ) {}
    virtual int pickDiscard (CCardStack*, bool, const GameState* );
    
};

#endif	/* _MINOPPGAINDISCARDSTRATEGY_H */

